package com.jinshan.edu.service;

import com.jinshan.response.RetVal;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "EDU-VIDEO")
public interface VideoServiceFeign {
    @DeleteMapping("/aliyun/video/{videoId}")
    public RetVal deleteVideoFromAliyun(@PathVariable String videoId) throws Exception;

    @DeleteMapping("/aliyun/video/deleteMultipleVideos")
    public RetVal deleteMultipleVideosFromAliyun(@RequestParam List<String> videoIds) throws Exception;
}
